﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using GiveCampStarterKit.Repositories;

namespace GiveCampStarterKit.Website.Controllers
{
    public class HomeController: BaseController
    {
        public HomeController(IContentRepository contentRepository, ISettingRepository settingRepository)
            :base(settingRepository)
        {
            _contentRepository = contentRepository;
        }

        private IContentRepository _contentRepository;

        public ActionResult Index()
        {
            ViewBag.Message = _contentRepository.Get("home-index", "blurb");

            return View();
        }

        public ActionResult About()
        {
            ViewBag.Content = _contentRepository.Get("home-about", "blurb");
            return View();
        }

        public ActionResult Features()
        {
            return View();
        }

        public ActionResult Volunteer()
        {
            return View();
        }

        public ActionResult Faq()
        {
            ViewBag.Content = _contentRepository.Get("home-faq", "blurb");

            return View();
        }
    }
}
